package com.neural.infrastructure;

public class Connection {

	private final Neuron preNeuron;
	private double weight;

	public Connection(Neuron preNeuron, double weight) {
		this.preNeuron = preNeuron;
		this.weight = weight;
	}

	public Neuron getPreNeuron() {
		return preNeuron;
	}

	public double getWeight() {
		return weight;
	}

	public void addWeight(double weight) {
		this.weight += weight;
	}
}
